package com.penglecode.dp.creational.builder;

public class TestBuilder {

	public static void main(String[] args) {
		Computer computer = null;
		Director director = null;
		ComputerBuilder builder = null;
		builder = new DellComputerBuilder();
		director = new Director(builder);
		director.construct();
		computer = builder.getResult();
		System.out.println(computer);
		System.out.println("-------------------------------->");
		builder = new LenovoComputerBuilder();
		director = new Director(builder);
		director.construct();
		computer = builder.getResult();
		System.out.println(computer);
	}

}
